import request from '@/utils/request'
export function getCompanyBalance(id) {
  return request({
    url: '/admin/card_bill/getCompanyBalance/'+id,
    method: 'get',
  })
}

//创建企业福利卡
export function uploadChargeMoney(params, data) {
    return request({
      url: '/admin/card_bill/uploadChargeMoney/',
      method: 'post',
      params: params,
      data: data,
    })
  }

  //查询企业福利卡
export function selectCompanyAllCard(params,data) {
    return request({
      url: '/admin/card_bill/selectCompanyAllCard',
      method: 'post',
      params:params,
      data: data,
    })
  }

  //查询企业福利卡
export function selectCompanyCardDetail(params,data) {
    return request({
      url: '/admin/card_bill/selectCompanyCardDetail',
      method: 'post',
      params: params,
      data: data,
    })
  }

   //删除企业福利卡
export function delCompanyCard(id) {
    return request({
      url: '/admin/card_bill/delCompanyCard/'+id,
      method: 'post',
    })
  }

  //查询用户福利卡包
export function selectCompanyEmployeeCard(params,data) {
    return request({
      url: '/admin/card_bill/selectCompanyEmployeeCard',
      method: 'post',
      params:params,
      data:data
    })
  }

  //查询用户账单
export function cardBillList(params) {
    return request({
      url: '/admin/card_bill/list',
      method: 'get',
      params:params,
    })
  }

